<?php
namespace haibao\www\business;

use \haibao\www\data\ArticleProImage as ArticleProIamgeData;
class FavoritePro extends \haibao\www\business\Base{
    
    public static function getProductProImage($aid){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getProductProImage($aid);
    }

   /*  
    * 获取文章导读图
    */
    public static function getArticleProImage($aid,$level){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getArticleProImage($aid, $level);
    }
    
    public static function getArticleProImageByIds($aid,$level){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getArticleProImageByIds($aid, $level);
    }
    
    
    public static function getImageCollectiveProIamge($aid,$type=\haibao\cms\model\data\imagecollective\ImageCollectivePro::IMAGE_TYPE_FIVE){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getImageCollectiveProIamge($aid,$type);
    }
    
    public static function getImageCollectiveProIamgeByIds($aid,$type=\haibao\cms\model\data\imagecollective\ImageCollectivePro::IMAGE_TYPE_FIVE){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getImageCollectiveProIamgeByIds($aid,$type);
    }
    
    public static function getVideoProImage($vid){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getVideoProImage($vid);
    }
    
    public static function getVideoProImageByIds($vid){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getVideoProImageByIds($vid);
    }
    
    public static function getFeatureProImage($fid){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getFeatureProImage($fid);
    }
    
    public static function getFeatureProImageByIds($fid){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getFeatureProImageByIds($fid);
    }
    
    public static function getTryProductProImage($id){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getTryProductProImage($id);
    }
    
    public static function getTryProductProImageByIds($id){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getTryProductProImageByIds($id);
    }
    
    public static function getArticleTitleById($aid){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getArticleTitleById($aid);
    }
    
    public static function getWapArticleTitleById($aid,$type){
    	$articleProImageData = new ArticleProIamgeData();
    	return $articleProImageData->getWapArticleTitleById($aid,$type);
    }
    
    public static function getImageCollectiveTitleById($pid){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getImageCollectiveTitleById($pid);
    }
    
    public static function getFeatureTitleById($fid){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getFeatureTitleById($fid);
    }
    
    public static function getVideoTitleById($vid){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getVideoTitleById($vid);
    }
    
    public static function getTryProductBuId($id){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getTryProductBuId($id);
    }
    public static function getProductNameById($id){
        $articleProImageData = new ArticleProIamgeData();
        return $articleProImageData->getProductNameById($id);
    }


}